﻿Imports System.IO

Module MakeMSI

    Sub Main()
        Dim buildMSI As New MSIBuilder()
        buildMSI.SourceZIPFilePath = "E:\Workflow\MulticolumnTest_UK_v1.zip"

        buildMSI.TargetZIPFilePath = "E:\VishnuB\CodeBox\CM_MSI\CM_BuildTemplate\CM_BuildTemplate\CM_BuildTemplate\Debug"
        buildMSI.ZIPFileName = "MulticolumnTest_UK_v1.zip"
        buildMSI.MSITemplatePath = "E:\VishnuB\CodeBox\CM_MSI\CM_BuildTemplate\CM_BuildTemplate\CM_BuildTemplate.sln"
        buildMSI.SEDTemplatePath = "E:\VishnuB\CodeBox\CM_MSI\CM_BuildTemplate\CM_BuildTemplate\CM_BuildTemplate\CM_BuildTemplate_noBatch.sed"
        buildMSI.MakeMSI()

        'For Each a As String In Directory.GetFiles("C:\Users\vishnub\AppData\Local\Temp\IXP000.TMP")
        '    buildMSI.DisplayLog(a)
        'Next
        'Dim files() As String
        'files = Directory.GetFiles("C:\Users\vishnub\AppData\Local\Temp\IXP000.TMP")
        'Dim di As New DirectoryInfo("C:\Users\vishnub\AppData\Local\Temp\IXP000.TMP")
        'Dim fileInfo() As FileInfo
        'For Each fl As FileInfo In di.GetFiles()
        '    If (fl.Extension = ".zip") Then
        '        buildMSI.DisplayLog(fl.Name)
        '        Exit For
        '    End If
        'Next
        'buildMSI.DisplayLog(Array.FindAll(files, Function(s) s.Contains(".zip"))(0))
        'Console.ReadLine()
    End Sub



End Module
